import request from "@/request";

export default {
  doAuth(data) {
    return request({
      url: "/company",
      method: "post",
      data,
    });
  },
  getDetail(id) {
    return request({
      url: `/company/${id}`,
      method: "get",
    });
  },
  getNodeList(params) {
    return request({
      url: "/node/info/list",
      method: "get",
      params,
    });
  },

  doReview(data) {
    return request({
      url: "/audit/operate",
      method: "post",
      data,
    });
  },
  getSupplyTypeRadioPieData() {
    return request({
      url: "/count/pie/resourceSupply",
      method: "get",
    });
  },
  getApplyTypeRadioPieData() {
    return request({
      url: "/count/pie/resourceOrder",
      method: "get",
    });
  },
};
